#include "sylar/head.h"
#include "sylar/http/http.h"

void test_request(){
	sylar::http::HttpRequest::ptr req(new sylar::http::HttpRequest);
	req->setHeader("host", "www.baidu.com");
	req->setBody("hello sylar");
	req->dump(std::cout) << std::endl;
}

void test_response(){
	sylar::http::HttpResponse::ptr rsp(new sylar::http::HttpResponse);
	rsp->setHeader("X-X", "sylar");
	rsp->setBody("hello sylar");

	rsp->dump(std::cout) << std::endl;
}

int main()
{
	// test_request();
	test_response();

	return 0;
}